projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1a068
)
; * haiku_support.cc (MessageReceived): Fix 32-bit build.
author
Po Lu
<luangruo@yahoo.com>
Sun, 13 Mar 2022 06:50:12 +0000
(06:50 +0000)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 13 Mar 2022 06:50:12 +0000
(06:50 +0000)
src/haiku_support.cc
patch
|
blob
|
history
diff --git
a/src/haiku_support.cc
b/src/haiku_support.cc
index ecd93dd226a85bd7e04dc0e01b3d7ee75fb6f76b..98cc8e93147a8e213e461a320771c5a4bb992700 100644
(file)
--- a/
src/haiku_support.cc
+++ b/
src/haiku_support.cc
@@
-1596,7
+1596,9
@@
public:
proportion = (float) portion / range;
value = msg->GetInt32 ("emacs:units", 0);
can_overscroll = msg->GetBool ("emacs:overscroll", false);
- value = std::max (0, value);
+
+ if (value < 0)
+ value = 0;
if (dragging != 1)
{